import request from "@/utils/request";
import cfg from "@/config/config";

const scheduleCalendarShowApi = {
  // 获取工作日历数据
  getScheduleCalendarDatas: param => {
    return request("get", cfg.apiUrl + "api/personDetails/schedule", param);
  },
  // 获取打卡记录
  getPunchRecord: param => {
    return request("get", cfg.apiUrl + "api/timeCard/byUser", param);
  },
  // 获取加班记录
  getOvertimeRecord: param => {
    return request("get", cfg.apiUrl + "api/overTime/byUser" , param);
  },
  // 获取请假记录
  getLeaveRecord: param => {
    return request("get", cfg.apiUrl + "bdLeaveOrder/schedule/byUser" , param);
  },
  // 获取加班审批流程
  deleteWorkCalendar: param => {
    return request("get", cfg.apiUrl + "api/workCalendar/deleteWorkCalendar" , param);
  },
  // 获取请假审批流程
  getBdKqWorkCalendarDetailList: param => {
    return request("get", cfg.apiUrl + "api/workCalendar/getBdKqWorkCalendarDetailList" , param);
  }
};

export default scheduleCalendarShowApi;